﻿using DomenModel;
using System;
using System.Collections.Generic;


namespace Model.Service
{
    public interface IItemService
    {
        List<Item> GetItems();
        ItemDimension GetItemDimensionById(int id);
       
        List<Item> GetPaginationListOfItems(int page, int itemOnPage, string t);
        List<Item> GetPaginationWithFilter(int page, int itemsOnPage, string orderItemsBy, string searchString, string listSelectField, string listSelectCondition);
        bool CreateItem(Item item);
        Item GetItem(string item);
        Item GetItemById(int id);
        void EditItem(Item item);
        bool DeleteItem(int id);        
        bool DeactivateItem(string loginName);
        bool DeactivateItemById(int id);
        long GetCountOfItems();
        long GetCountOfItems(string searchString, string listSelectField, string listSelectCondition);
        void AddNewItemDimension(ItemDimension item);
        void EditItemDimension(ItemDimension itemDim);
        
    }
}
